package com.atguigu.gulimall.search.thread2;


class A{
    static{
        System.out.println("A static");
    }
    public A(){
        System.out.println("A 构造");
    }
}
class B extends A{
    static{
        System.out.println("B static");
    }
}
class C extends B{
    private static  D d = new D();
    static{
        System.out.println("C static");
    }
}
class D{
    static{
        System.out.println("D static");
    }
}
public class Demo2 {
    public static void main(String[] args) {
        C c = new C();
    }
}